Automated closed-loop insulin delivery (AiD)